<script setup lang="ts">
import { Button as VanButton } from 'vant'
import { useRoute, useRouter } from 'vue-router'

const route = useRoute()
const router = useRouter()
const getRoute = () => {
  console.log(route.query)
  router.push(route.query.returnPath as string)
}
</script>

<template>
  <!-- 验证vant颜色被覆盖 -->
  <div>
    <router-view></router-view>
  </div>
</template>

<style scoped lang="scss">
// 使用 css 变量
a {
  color: var(--cp-primary);
}
</style>
